package com.project.base.entity;

/**
 * 订单创建日志
 * Created by lvzimin on 16/1/11.
 */
public class OrderCreateLog extends AccessLog {

    private static final long serialVersionUID = 3548998737255373456L;

    /**
     * 订单号
     */
    public Long orderId;

    /**
     * 产品ID
     */
    public Long productId;

    /**
     * 商品ID列表
     */
    public Long[] goodsId;

    /**
     * 品类ID
     */
    public Long categoryId;

    /**
     * 目的地ID
     */
    public Long destId;

    /**
     * 商品购买数量
     */
    public Long[] quantities;

    /**
     * 商品成人数
     */
    public Long[] adultQuantities;

    /**
     * 商品儿童数
     */
    public Long[] childQuantities;

    /**
     * 订单金额
     */
    public Long sellPrice;

    public String toLogStr(String seperator) {
        StringBuilder builder = new StringBuilder();
        builder.append(super.toLogStr(seperator));
        builder.append(orderId).append(seperator);
        builder.append(productId).append(seperator);
        builder.append(goodsId).append(seperator);
        builder.append(categoryId).append(seperator);
        builder.append(destId).append(seperator);
        builder.append(quantities).append(seperator);
        builder.append(adultQuantities).append(seperator);
        builder.append(childQuantities).append(seperator);
        builder.append(sellPrice).append(seperator);
        return builder.toString();
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Long[] getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long[] goodsId) {
        this.goodsId = goodsId;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public Long getDestId() {
        return destId;
    }

    public void setDestId(Long destId) {
        this.destId = destId;
    }

    public Long[] getQuantities() {
        return quantities;
    }

    public void setQuantities(Long[] quantities) {
        this.quantities = quantities;
    }

    public Long[] getAdultQuantities() {
        return adultQuantities;
    }

    public void setAdultQuantities(Long[] adultQuantities) {
        this.adultQuantities = adultQuantities;
    }

    public Long[] getChildQuantities() {
        return childQuantities;
    }

    public void setChildQuantities(Long[] childQuantities) {
        this.childQuantities = childQuantities;
    }

    public Long getSellPrice() {
        return sellPrice;
    }

    public void setSellPrice(Long sellPrice) {
        this.sellPrice = sellPrice;
    }

}
